home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / edit / aurora2.zip / WSMENU.AML < prev   
Text File  |  1995-01-26  |  18KB  |  460 lines

  1.  
  2. // ───────────────────────────────────────────────────────────────────
  3. // The Aurora Editor v2.0
  4. // Copyright 1993-1995 nuText Systems. All Rights Reserved Worldwide.
  5. //
  6. // WordStar/Borland IDE  Menu definitions (included by MAIN.AML)
  7. //
  8. // If you have made any changes, save this file and select 'Recompile
  9. // the Editor' from the Set menu. Exit and re-enter the editor for
  10. // your changes to take effect.
  11. // ───────────────────────────────────────────────────────────────────
  12.  
  13. // ───────────────────────────────────────────────────────────────────
  14. //  Edit Window menu bar and tool bar
  15. // ───────────────────────────────────────────────────────────────────
  16.  
  17.   function  EditMen
  18.  
  19.     // menu bar
  20.     menubar "" 1
  21.       item "&File"     "editFile"
  22.       item "&Window"   "editWindow"
  23.       item "&Block"    "editBlock"
  24.       item "&Search"   "editSearch"
  25.       item "F&old"     "editFold"
  26.       item "&Edit"     "editEdit"
  27.       item "&Clip"     "editClip"
  28.       item "&Print"    "editPrint"
  29.       item "Se&t"      "editSet"
  30.       item "M&acro"    "editMacro"
  31.       item "&Help"     "editHelp"
  32.     end
  33.  
  34.     // tool bar
  35.     menubar "" 2
  36.       item "<&&≡>"     toolbar                 // close tool bar
  37.       item "<&&?>"     quickref 'u' 'f'        // users guide
  38.       item "<&&*>"     open "*.*"              // display file manager
  39.       item "<&&/>"     copywin                 // copy window
  40.       item "<&&─>"     splitwin 'h'            // split window horz
  41.       item "<&&|>"     splitwin 'v'            // split window vert
  42.       item "<&&o>"     askopen                 // open prompt
  43.       item "<&&s>"     save                    // save file
  44.       item "<&&F>"     askfind                 // find prompt
  45.       item "<&&f>"     findlast                // do last find/replace
  46.       item "<&&r>"     formatblock2 "kr"       // reformat block
  47.       item "<&&«>"     undo                    // undo last change
  48.       item "<&&»>"     redo                    // redo last change
  49.       item "<&&>>"     foldblock2              // fold block
  50.       item "<&&<>"     destroyfold2            // destroyfold
  51.     end
  52.   end
  53.  
  54.  
  55. // ───────────────────────────────────────────────────────────────────
  56. //  Edit Window pulldown menus
  57. // ───────────────────────────────────────────────────────────────────
  58.  
  59.   menu  "editFile"
  60.     item " &New"                              opennew
  61.     item " &Open..      <ctrl k><e> or <f3>"  askopen
  62.     item " Open and &Insert..   <ctrl k><r>"  askinsert
  63.     item " Open &Binary.."                    askopenb
  64.     item " Open Las&t               <alt z>"  openlast
  65.     item " &Rename..                <alt n>"  askname
  66.     item " &Save        <ctrl k><s> or <f2>"  save
  67.     item " Sa&ve As.."                        asksaveas
  68.     item "-"
  69.     item " &File Manager..             <f4>"  open "*.*"
  70.     item " Ne&xt"                             nextfile
  71.     item " &Prev"                             prevfile
  72.     item " &List..                  <alt 0>"  filelist
  73.     item "─"
  74.     item " &Close               <ctrl k><q>"  close
  75.     item " Close &All               <alt x>"  closeall
  76.     item " Sav&e and Close      <ctrl k><x>"  close 's'
  77.     item " Save an&d Close All"               closeall 's'
  78.     item "─"
  79.     item " Abo&ut.."                          about
  80.   end
  81.  
  82.  
  83.   menu  "editWindow"
  84.     item " &Restore"                       restore
  85.     item " &Move/Size         <ctrl f5>"   sizekey
  86.     item " P&an               <ctrl f6>"   pankey
  87.     item " M&inimize"                      minimize
  88.     item " Ma&ximize               <f5>"   maximize
  89.     item " &Next                   <f6>"   nextwindow
  90.     item " &Prev             <shift f6>"   prevwindow
  91.     item " &List.."                        winlist
  92.     item "─"
  93.     item " &Copy            <ctrl q><w>"   copywin
  94.     item " Split Hor&z"                    splitwin 'h'
  95.     item " Split Ver&t      <ctrl q><v>"   splitwin 'v'
  96.     item "─"
  97.     item " Ca&scade          <shift f5>"   cascade
  98.     item " Tile &Horz        <shift f4>"   tile 'h'
  99.     item " Tile &Vert        <shift f3>"   tile 'v'
  100.     item "─"
  101.     item " Tool &Bar          <ctrl f8>"   toolbar
  102.     item " St&yle Toggle      <ctrl f4>"   togglestyle
  103.     item " Pr&ompt Style.."                askprompt
  104.   end
  105.  
  106.   // wordstar emulation only
  107.   forward  markblock
  108.   forward  marktoggle
  109.  
  110.   menu  "editMark"
  111.     item " Mark &Line           <ctrl k><l>"  markline
  112.     item " Mark &Block          <ctrl k><b>"  markblock
  113.     item " Mark &Toggle Column  <ctrl k><n>"  marktoggle
  114.     item " Mark C&haracter"                   markchar
  115.     item " Mark &Word           <ctrl k><t>"  markword
  116.     item " Mark to &EOL             <alt 2>"  markeol
  117.     item " Mark &Paragraph          <alt 3>"  markpara "tb"
  118.     item "─"
  119.     item " &Unmark              <ctrl k><h>"  destroymark
  120.   end
  121.  
  122.   menu  "editBlock"
  123.     item " Mar&k..                    "    submenu "editMark"
  124.     item " &Copy            <ctrl k><c>"    copyblock2
  125.     item " Copy &Over       <ctrl k><z>"    copyblockover
  126.     item " &Move            <ctrl k><v>"    moveblock2
  127.     item " Mo&ve Over"                      moveblockover
  128.     item " &Delete          <ctrl k><y>"    deleteblock2
  129.     item " &Indent          <ctrl k><i>"    shiftblock  1
  130.     item " Uninden&t        <ctrl k><u>"    shiftblock -1
  131.     item "─"
  132.     item " &Fill            <ctrl k><f>"    fillblock2
  133.     item " &Reformat           <ctrl b>"    formatblock2 "kr"
  134.     item " R&eformat Right      <alt y>"    formatblock2 "rj"
  135.     item " S&ave..          <ctrl k><w>"    saveblock2
  136.     item " &Sort            <ctrl k><o>"    sortblock2
  137.     item " Lo&wercase"                      caseblock 'l'
  138.     item " U&ppercase"                      caseblock
  139.     item "─"
  140.     item " &Left Justify"                   justblock2 'l'
  141.     item " Ri&ght Justify"                  justblock2 'r'
  142.     item " Ce&nter"                         justblock2 'c'
  143.   end
  144.  
  145.   menu  "editSearch"
  146.     item " &Find..                <ctrl k><f>"   askfind
  147.     item " Re&place..             <ctrl q><a>"   askrepl
  148.     item " &Repeat Last Find/Repl    <ctrl l>"   findlast
  149.     item " &Scan Files..          <ctrl o><s>"   askscan
  150.     item " &Incremental Search    <ctrl q><i>"   isearch
  151.     item " Find &Occurrences.."                  askfindo
  152.     item "─"
  153.     item " &Quick Bookmark           <ctrl 2>"   quickbook
  154.     item " Pre&v Bookmark            <ctrl 6>"   cyclebook
  155.     item " Place &Bookmark.."                    placebook
  156.     item " &Go to Bookmark.."                    askbook
  157.     item "─"
  158.     item " Go to &Line..          <ctrl q><j>"   askrow
  159.     item " Go to Bloc&k Start     <ctrl q><b>"   gotomark 't'
  160.     item " Go to Block En&d"                     gotomark 'b'
  161.     item " Go to Ne&xt Fold           <alt 7>"   search2 "f/f"
  162.     item "─"
  163.     item " Find &Matching Char    <ctrl q><[>"   gotomatch2
  164.     item " Go to Compiler &Error     <alt f7>"   gotoerror
  165.   end
  166.  
  167.   menu  "editFold"
  168.     item " &Fold Next Line          <alt 8>"    foldline
  169.     item " &Unfold Next Line        <alt 9>"    foldline 'u'
  170.     item "─"
  171.     item " C&reate Fold"                        createfold
  172.     item " &Destroy Fold            <alt g>"    destroyfold2
  173.     item " &Open Fold               <alt \\>"   openfold
  174.     item " &Close Fold              <alt \\>"   closefold
  175.     item "─"
  176.     item " Fold Bloc&k"                         foldblock2
  177.     item " Fold Block Fl&at"                    foldflat
  178.     item " Des&troy Block Folds"                foldblock 'ds'
  179.     item " O&pen Block Folds"                   foldblock 'os'
  180.     item " C&lose Block Folds"                  foldblock 'cs'
  181.     item "─"
  182.     item " Destro&y All Folds"                  foldall 'ds'
  183.     item " Ope&n All Folds          <alt [>"    foldall 'os'
  184.     item " Clo&se All Folds         <alt ]>"    foldall 'cs'
  185.     item "─"
  186.     item " &Export without Folds.."             asksaveas 'x'
  187.     item " E&xport Block without Folds.."       saveblock2 'x'
  188.   end
  189.  
  190.   menu  "editEdit"
  191.     item " &Undo                  <ctrl u>"   undo
  192.     item " &Redo               <ctrl o><r>"   redo
  193.     item "─"
  194.     item " &Insert Line       <ctrl enter>"   insline2
  195.     item " &Delete Line           <ctrl y>"   delline
  196.     item " &Split Line            <ctrl n>"   splitline2
  197.     item " &Join Line              <alt j>"   joinline
  198.     item "─"
  199.     item " &Erase to End       <ctrl q><y>"   delchar (getlinelen)
  200.     item " Delete Right &Word     <ctrl t>"   delword
  201.     item " Du&plicate Line         <alt 4>"   insline (gettext)
  202.     item " Sw&ap Lines             <alt 5>"   swapline
  203.     item " Ce&nter Line        <ctrl o><c>"   centerline
  204.     item "─"
  205.     item " &Comment Line          <alt f1>"   commentline
  206.     item " Enter &Literal..       <ctrl p>"   literal
  207.     item " Ascii C&hart..          <alt =>"   asciilist
  208.     item " Date/&Time Stamp    <ctrl q><o>"   timestamp
  209.     item " E&xpand Tabs"                      tabfile
  210.     item " Hi&ghlight Word        <ctrl \\>"  hiliteword
  211.   end
  212.  
  213.   menu  "editClip"
  214.     item " Cu&t                     <grey->"  cut
  215.     item " Cut &Append         <ctrl grey->"  cut 'a'
  216.     item " &Copy                    <grey+>"  copy
  217.     item " Cop&y Append        <ctrl grey+>"  copy 'a'
  218.     item "─"
  219.     item " &Paste                   <grey*>"  paste
  220.     item " Paste &Over         <ctrl grey*>"  paste 'o'
  221.     item "─"
  222.     item " C&lear              <ctrl grey/>"  clear
  223.     item " Current Clip&board..|*"            askclip
  224.   end
  225.  
  226.   menu  "editPrint"
  227.     item " &Print"                            print
  228.     item " Print &Block        <ctrl k><p>"   print 'b'
  229.     item " Print &Formfeed"                   printstr (char 12)
  230.     item "-"
  231.     item " &Header/Footer..|*"                askprthdr
  232.     item " Printer &Settings..|*"             askprint
  233.   end
  234.  
  235.   menu  "Fonts"
  236.     item " 80 cols x 1&4 rows|*"           videomode 80 14
  237.     item " 80 cols x 2&1 rows|*"           videomode 80 21
  238.     item " 80 cols x 2&5 rows|*"           videomode 80 25
  239.     item " 80 cols x 2&8 rows|*"           videomode 80 28
  240.     item " 80 cols x 4&3 rows|*"           videomode 80 43
  241.     item " 80 cols x 5&0 rows|*"           videomode 80 50
  242.     item "─"
  243.     item " 40 cols x &25 rows|*"           videomode 40 25
  244.   end
  245.  
  246.   // Note: do not change the first 12 lines of this menu
  247.   // (except for key definitions)
  248.   menu  "editSet"
  249.     item " &AutoIndent          <ctrl o><i>"   setting 'A' TOGGLE
  250.     item " &Backup"                            setting 'B' TOGGLE
  251.     item " Line &Draw"                         setting 'D' TOGGLE
  252.     item " Line St&yle..                  "   submenu "LineStyle"
  253.     item " &Match Character"                   setting 'M' TOGGLE
  254.     item " &Smart Tabs"                        setting 'S' TOGGLE
  255.     item " Synta&x Highlighting"               setting 'X' TOGGLE
  256.     item " &Translate              <alt f4>"   setting 'T' TOGGLE
  257.     item " &Undo"                              setting 'U' TOGGLE
  258.     item " &Variable Tabs"                     setting 'V' TOGGLE
  259.     item " &Word Wrap"                         setting 'W' TOGGLE
  260.     item " &Live Word Wrap      <ctrl o><w>"   setting 'L' TOGGLE
  261.     item "─"
  262.     item " Word &Processing..             "   submenu "WordP"
  263.     item " Bi&nary Line Length..|*"            askbinary
  264.     item " Line D&elimiter..|*"                askdelim
  265.     item "─"
  266.     item " V&ideo Mode..                  "   submenu "Fonts"
  267.     item " Save &Current Settings"             saveconfig
  268.     item " &Recompile the Editor   <alt f9>"   recompile
  269.   end
  270.  
  271.   menu  "WordP"
  272.     item " &Tab Width..|*"            asktabw
  273.     item " &Variable Tab Stops..|*"   asktabv
  274.     item "─"
  275.     item " &Left Margin..|*"          asklmarg
  276.     item " &Right Margin..|*"         askrmarg
  277.   end
  278.  
  279.   // Note: do not change this menu (except for key definitions)
  280.   menu  "LineStyle"
  281.     item " &Single"               setdraw 0
  282.     item " Double &Horizontal"    setdraw 1
  283.     item " Double &Vertical"      setdraw 2
  284.     item " &Double"               setdraw 3
  285.     item " &Eraser"               setdraw 4
  286.   end
  287.  
  288.   menu  "editMacro"
  289.     item " &Record Toggle       <ctrl f7>"    record
  290.     item " &Play               <shift f7>"    play
  291.     item " &Erase"                            erasekey
  292.     item " Era&se All"                        erasekey 'a'
  293.     item " Ope&n.."                           askopenkey
  294.     item " Sa&ve.."                           asksavekey
  295.     item " &Assign to Key.."                  assignkey
  296.     item "─"
  297.     item " &Configuration.."                  opencfg "config"
  298.     item " &Keys.."                           opencfg "kbd"
  299.     item " Sample Utility &Macros.."
  300.       runmacro (getbootpath + "MACRO\\" + "utility.x")
  301.     item "─"
  302.     item " Macro E&xpression.."               askeval
  303.     item " R&un Macro.."                      askrmacro
  304.     item " &Include Macro.."                  askimacro
  305.     item " Compi&le Macro.."                  askcmacro
  306.     item "─"
  307.     item " &OS Command.."                     askrun
  308.     item " OS Cap&ture..         <alt f8>"    askruncap
  309.     item " OS S&hell          <ctrl k><f>|*"  shell
  310.   end
  311.  
  312.   menu  "editHelp"
  313.     item " &User's Guide Topics"
  314.       runmacro (getbootpath + "MACRO\\" + "helpuser.x")
  315.     item " User's &Guide"                            quickref 'u'
  316.     item " User &Tips"                               quickref 't'
  317.     item "-"
  318.     item " &Language Reference Topics"
  319.       runmacro (getbootpath + "MACRO\\" + "helplang.x")
  320.     item " Language &Reference"                      quickref 'l'
  321.     item "-"
  322.     item " &Function Reference          <shift f2>"  quickref 'f'
  323.     item " Function &Quick Reference    <shift f1>"  quickref 'q'
  324.     item "-"
  325.     item " &Ordering Information"                    quickref 'o'
  326.   end
  327.  
  328.  
  329. // ───────────────────────────────────────────────────────────────────
  330. //  File Manager window menu bar
  331. // ───────────────────────────────────────────────────────────────────
  332.  
  333.   function  FmgrMen
  334.     menubar "" 1
  335.       item "&File"    "fmgrFile"
  336.       item "&Window"  "fmgrWindow"
  337.       item "&Mark"    "fmgrMark"
  338.       item "&Command" "fmgrCommand"
  339.       item "&Sort"    "fmgrSort"
  340.       item "&Print"   "fmgrPrint"
  341.       item "Se&t"     "fmgrSet"
  342.       item "M&acro"   "editMacro"
  343.       item "&Help"    "editHelp"
  344.     end
  345.   end
  346.  
  347.  
  348. // ───────────────────────────────────────────────────────────────────
  349. //  File Manager window pulldown menus
  350. // ───────────────────────────────────────────────────────────────────
  351.  
  352.   menu  "fmgrFile"
  353.     item " &New"                              opennew
  354.     item " &Open..      <ctrl k><e> or <f3>"  askopen
  355.     item " Open &Binary.."                    askopenb
  356.     item " Open Las&t               <alt z>"  openlast
  357.     item " &Parent             <ctrl baksp>"  fup
  358.     item " R&efresh"                          reopen
  359.     item "─"
  360.     item " &Close               <ctrl k><q>"  close
  361.     item " Close &All               <alt x>"  closeall
  362.     item "─"
  363.     item " Abo&ut.."                          about
  364.   end
  365.  
  366.   menu  "fmgrWindow"
  367.     item " &Restore"                      restore
  368.     item " &Move/Size        <ctrl f5>"   sizekey
  369.     item " P&an              <ctrl f6>"   pankey
  370.     item " M&inimize"                     minimize
  371.     item " Ma&ximize              <f5>"   maximize
  372.     item " &Next                  <f6>"   nextwindow
  373.     item " &Prev            <shift f6>"   prevwindow
  374.     item " &List..             <alt w>"   winlist
  375.     item "─"
  376.     item " Ca&scade         <shift f5>"   cascade
  377.     item " Tile &Horz       <shift f4>"   tile 'h'
  378.     item " Tile &Vert       <shift f3>"   tile 'v'
  379.     item "─"
  380.     item " Pr&ompt Style.."               askprompt
  381.   end
  382.  
  383.   menu  "fmgrMark"
  384.     item " Mark &Toggle     <space>"     fmark
  385.     item "─"
  386.     item " &Mark All        <alt m>"     fmark "ma"
  387.     item " &Unmark All      <alt u>"     fmark "ua"
  388.   end
  389.  
  390.   menu  "fmgrCommand"
  391.     item " &Open                  <enter>"    fopen
  392.     item " Open &Binary         <shift b>"    fopen 'b'
  393.     item " Open &Key Macro      <shift k>"    openkey2 (getffile)
  394.     item "─"
  395.     item " &Move..              <shift m>"    fmove
  396.     item " &Copy..              <shift c>"    fcopy
  397.     item " &Delete     <del> or <shift d>"    fdelete
  398.     item " Re&name..            <shift n>"    frename
  399.     item "─"
  400.     item " &Run                 <shift r>"    frun 'c'
  401.     item " &Print               <shift p>"    fprint
  402.     item "─"
  403.     item " &Attributes..        <shift a>"    fattr
  404.     item " &Touch               <shift t>"    ftouch
  405.     item "─"
  406.     item " Cr&eate Directory.."               fmkdir
  407.     item " &Scan Files..         <ctrl s>"    askscan
  408.   end
  409.  
  410.   menu  "fmgrSort"
  411.     item " &Name           <alt n>"    fsort 'n'
  412.     item " &Extension"                 fsort 'e'
  413.     item " &Size           <alt s>"    fsort 's'
  414.     item " &Date-Time      <alt d>"    fsort 'd'
  415.     item " &OS Default     <alt o>"    fsort 'o'
  416.   end
  417.  
  418.   menu  "fmgrSet"
  419.     item " Bi&nary Line Length..|*"                askbinary
  420.     item " L&ine Delimiter..|*"                    askdelim
  421.     item "─"
  422.     item " &Video Mode..                   "      submenu "Fonts"
  423.     item " Video To&ggle           <ctrl f1>|*"    togglemode
  424.     item "-"
  425.     item " Save &Current Settings"                 saveconfig
  426.     item " &Recompile the Editor    <alt f9>"      recompile
  427.   end
  428.  
  429.   menu  "fmgrPrint"
  430.     item " &Print            <ctrl k><p>"   print
  431.     item " Print &Formfeed"                 printstr (char 12)
  432.     item " Print &Settings..|*"             askprint
  433.   end
  434.  
  435.  
  436. // ───────────────────────────────────────────────────────────────────
  437. //  Miscellaneous menus
  438. // ───────────────────────────────────────────────────────────────────
  439.  
  440.   // yes/no/cancel popup menu
  441.   menu  "ync"
  442.     item " &Yes"
  443.     item " &No"
  444.     item " &Cancel"
  445.   end
  446.  
  447.   // ok/cancel popup menu
  448.   menu  "ok"
  449.     item " O&k"
  450.     item " &Cancel"
  451.   end
  452.  
  453.   // replace/append/cancel popup menu
  454.   menu  "rac"
  455.     item " &Replace"
  456.     item " &Append"
  457.     item " &Cancel"
  458.   end
  459.  
  460.